package com.siwei.mes.mapper;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.TestProjectInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 试验项目配置(TestProjectInfo)表数据库访问层
 *
 * @author linzi
 * @since 2023-12-21 21:01:52
 */
public interface TestProjectInfoMapper extends BaseMapper<TestProjectInfo> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<TestProjectInfo> getList(TestProjectInfo entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    TestProjectInfo loadById(@Param("id") Long id);

    /**
     * 根据试验项目code查询
     *
     * @param testProjectCodeList
     * @return
     */
    List<TestProjectInfo> selectByTestProjectCodeList(@Param("testProjectCodeList") Set<String> testProjectCodeList);
}
